package com.hz.ruoyiequipment.equipment.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hz.ruoyiequipment.equipment.domain.AgrEnvRegulation;
import com.ruoyi.common.core.web.domain.AjaxResult;

import java.util.List;

/**
 * @author 高铭月
 * @date 2025/3/7 11:29
 * @description:
 */
public interface AgrEnvRegulationService extends IService<AgrEnvRegulation> {
    /**
     * 获取环境调控设备列表
     * @param agrEnvRegulation
     * @return
     */
    List<AgrEnvRegulation> getAgrEnvRegulation(AgrEnvRegulation agrEnvRegulation);

    /**
     * 获取环境调控设备详情
     * @param equipmentId
     * @return
     */
    AjaxResult getAgrEnvRegulationByEquipmentId(Long equipmentId);

    /**
     * 获取环境调控设备状态
     * @param equipmentId
     * @return
     */
    public Integer getAgrEnvRegulationStatusByEquipmentIdInner(Long equipmentId);

    /**
     * 更新设备状态
     * @param equipmentId
     * @param status
     * @return
     */
    AjaxResult updateStatus(Long equipmentId, Integer status);


    /**
     * 新增环境调控设备
     * @param regulation
     * @return
     */
    AjaxResult insertRegulationEquipment(AgrEnvRegulation regulation);

    /**
     * 更新环境调控设备
     * @param regulation
     * @return
     */
    AjaxResult updateRegulationEquipment(AgrEnvRegulation regulation);

    /**
     * 删除环境调控设备
     * @param equipmentId
     * @return
     */
    AjaxResult delRegulationEquipment(Long equipmentId);
}
